package com.cake.dao;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxCoupon;

public interface XxCouponMapper extends IBaseDao<XxCoupon> {
    int deleteByPrimaryKey(Long id);

    int insert(XxCoupon record);

    int insertSelective(XxCoupon record);

    XxCoupon selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(XxCoupon record);

    int updateByPrimaryKey(XxCoupon record);
    /**
     * 根据商品分类id查询出优惠券的数量
     * @param productCategoryId
     * @return
     */
    Integer selectCouponByProductCategory(Long productCategoryId);
}